const tenantId = JSON.parse(localStorage.getItem("saber-tenantId")).content;

export const riskActivityColumn = [
	{
		label: "工作步骤",
		prop: "gzbz",
		align: "center"
	},
	{
		label: "潜在危害",
		prop: "qzwh",
		align: "center"
	},
	{
		label: "主要后果",
		prop: "zyhg",
		align: "center"
	},
	{
		label: "现有安全措施",
		prop: "xyaqcs",
		align: "center"
	},
	{
		label: "可能性",
		prop: "knx",
		align: "center",
		width: 60
	},
	{
		label: "严重性",
		prop: "yzx",
		align: "center",
		width: 60
	},
	{
		label: "风险值",
		prop: "fxz",
		align: "center",
		width: 60
	},
	{
		label: "风险等级",
		prop: "fxdj",
		align: "center"
	},
	{
		label: "改进措施",
		prop: "gjcs",
		align: "center"
	},
]

export const jhaAnalysisColumn = [
	{
		label: "部门名称",
		prop: "bm",
		align: "center",
		search: true,
		type: "tree",
		width: 150,
		dicData: [],
		props: {
			label: "title"
		},
		rules: [{
			required: true,
			message: "请选择部门名称",
			trigger: "change"
		}]
	},
	{
		label: "岗位名称",
		prop: "gw",
		align: "center",
		search: true,
		type: "select",
		width: 150,
		dicUrl: "/api/blade-system/post/select?tenantId=" + tenantId,
		props: {
			label: "postName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择岗位/工种名称",
			trigger: "change"
		}]
	},
	{
		label: "工段",
		prop: "gd",
		align: "center",
		hide: true,
		span: 24
	},
	{
		label: "工作任务",
		prop: "gzrw",
		align: "center",
		type: "textarea",
		span: 24,
		maxlength: 150
	},
	{
		label: "分析人",
		prop: "fxr",
		align: "center",
		type: "select",
		width: 120,
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		}
	},
	{
		label: "分析时间",
		prop: "fxsj",
		align: "center",
		type: "date",
		width: 120
	},
	{
		label: "审核人",
		prop: "shren",
		align: "center",
		type: "select",
		hide: true,
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		}
	},
	{
		label: "审定人",
		prop: "sdr",
		align: "center",
		type: "select",
		hide: true,
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		}
	},
	{
		label: "",
		prop: "xzhd",
		hide: true,
		formslot: true,
		viewDisplay: false,
		span: 24
	},
	{
		label: "",
		prop: "activities",
		hide: true,
		formslot: true,
		span: 24
	}
]